package com.moore.controller;

import com.moore.dto.ResponseData;
import com.moore.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CountController {
    @Autowired
    CountService countService;
    @RequestMapping("/count")
    public ResponseData getCount(){
        return countService.getCount();
    }
}
